<?xml version="1.0" ?>
<map height="10" tileheight="32" tileset="tiles/tetia" tilewidth="64" width="10">

<layer z="0">
<tiles>
118 7 118 7 118 7 118 7 0 7    118 7 118 7 118 7 118 7 0 7    118 7 118 7 118 7 118 7 0 7    118 7 118 7 118 7 118 7 0 7    0 8 0 8 0 8 0 8 0 7    0 8 0 8 0 8 0 8 0 7    118 7 118 7 118 7 118 7 0 7    118 7 118 7 118 7 118 7 0 7    118 7 118 7 118 7 118 7 0 7    118 7 118 7 118 7 118 7 0 7    
118 7 118 7 118 7 118 7 0 7    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 7    
118 7 118 7 118 7 118 7 0 7    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 7    
118 7 118 7 118 7 118 7 0 7    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 7    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 7    
118 7 118 7 118 7 118 7 0 7    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 7    
118 7 118 7 118 7 118 7 0 7    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 7    
118 7 118 7 118 7 118 7 0 7    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 7    
118 7 118 7 118 7 118 7 0 7    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 7    
118 7 118 7 118 7 118 7 0 7    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 7    
118 7 118 7 118 7 118 7 0 7    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 0    0 8 0 8 0 8 0 8 0 7    
</tiles>


<!-- Way back to tetia village. -->
<area tilex1="4" tilex2="6" tiley1="0" tiley2="1">
import party, annchienta
partyManager = party.getPartyManager()
partyManager.changeMap( &quot;locations/tetia/village.xml&quot;, annchienta.Point( annchienta.TilePoint, 17, 13 ), 1 )
</area>

<!-- If not met inyse, inyse and some ghosts. -->
<if code="import party;partyManager=party.getPartyManager()" cond="not partyManager.hasRecord('tetia_met_inyse')">
    <staticobject name="inyse" config="locations/tetia/inyse.xml" tilex="5" tiley="9" animation="standfight"/>
    <staticobject name="ghost1" sprite="sprites/ghost.png" mask="masks/aelaan.png" tilex="3" tiley="6" />
    <staticobject name="ghost2" sprite="sprites/ghost.png" mask="masks/aelaan.png" tilex="4" tiley="7" />
    <staticobject name="ghost3" sprite="sprites/ghost.png" mask="masks/aelaan.png" tilex="5" tiley="6" />
    <staticobject name="ghost4" sprite="sprites/ghost.png" mask="masks/aelaan.png" tilex="6" tiley="7" />
    <staticobject name="ghost5" sprite="sprites/ghost.png" mask="masks/aelaan.png" tilex="7" tiley="6" />
    <staticobject name="ghost6" sprite="sprites/ghost.png" mask="masks/aelaan.png" tilex="8" tiley="7" />
    <staticobject name="ghost7" sprite="sprites/ghost.png" mask="masks/aelaan.png" tilex="9" tiley="6" />
    <staticobject name="ghost8" sprite="sprites/ghost.png" mask="masks/aelaan.png" tilex="10" tiley="7" />
    <!-- The battle event. -->
    <area tilex1="4" tiley1="1" tilex2="6" tiley2="3" script="locations/tetia/meet_inyse.py"/>
</if>

</layer>

<onload>
import annchienta, battle
battleManager = battle.getBattleManager()
annchienta.getAudioManager().playMusic(&quot;music/tetia.ogg&quot;)
annchienta.getVideoManager().setClearColor(0,0,0)
battleManager.enemiesInMap = []
battleManager.battleBackground = &quot;images/backgrounds/prison.png&quot;
</onload>

</map>
